home *** CD-ROM | disk | FTP | other *** search
/ T&A 2 the Maxx 3 / T and A 2 The Maxx Number 3.iso / viewers / unixview / xgiftar.z / xgiftar / build-imake < prev    next >
Text File  |  1991-05-20  |  1KB  |  51 lines

  1. #! /bin/sh
  2. # this program is used for generating Imakefiles
  3.  
  4. OUT=Imakefile
  5.  
  6. cat > $OUT << END_OF_INPUT
  7. # Imakefile for building within the X11 source tree.
  8. # This Imakefile was automatically generated from Makefile.std.
  9. #
  10. # If you have problems building, you should read the README file and
  11. # consider using Makefile.std.
  12. #
  13. # If you use gcc, you should read the README file and consider using
  14. # Makefile.std.
  15.  
  16.     SYSPATHFILE = $(XAPPLOADDIR)/Xloadimage
  17.         DEFINES = -DSYSPATHFILE=\"$(SYSPATHFILE)\"
  18.         DEPLIBS = $(DEPXLIB)
  19. LOCAL_LIBRARIES = $(XLIB)
  20. SYS_LIBRARIES   = -lm
  21.  
  22. END_OF_INPUT
  23.  
  24. echo "SRCS = $1" >> $OUT
  25. echo "OBJS = $2" >> $OUT
  26.  
  27. cat >> $OUT << END_OF_INPUT
  28.  
  29. ComplexProgramTarget(xloadimage)
  30.  
  31. install:: $(SYSPATHFILE)
  32.     $(RM) $(BINDIR)/xview $(BINDIR)/xsetbg
  33.     $(LN) $(BINDIR)/xloadimage $(BINDIR)/xview
  34.     $(LN) $(BINDIR)/xloadimage $(BINDIR)/xsetbg
  35.  
  36. $(SYSPATHFILE):
  37.     @echo "*** Creating default $(SYSPATHFILE) since you"
  38.     @echo "*** don't have one. This file is used to set up default places"
  39.     @echo "*** and names to look for images.  You probably want to edit"
  40.     @echo "*** it for your site.  See the xloadimage manual page for"
  41.     @echo "*** details on the contents of this file."
  42.     cp /dev/null $(SYSPATHFILE)
  43.     echo "path=$(INCDIR)/bitmaps $(INCDIR)/images" \
  44.         >> $(SYSPATHFILE)
  45.     echo "extension=.csun .msun .sun .face .xbm .bm .gif" \
  46.         >>$(SYSPATHFILE)
  47.  
  48. END_OF_INPUT
  49.  
  50. chmod 444 $OUT
  51.